package cn.dslcode.security.common;

import cn.dslcode.common.web.response.ResponseCode;
import lombok.Data;

/**
 * @author dongsilin
 * @version 2018/6/14.
 */
@Data
public class AuthenticationFailureResult {

    private String username;
    private String password;
    private int code;
    private String message;

    public AuthenticationFailureResult(String username, String password, ResponseCode responseCode) {
        this.username = username;
        this.password = password;
        this.code = responseCode.getCode();
        this.message = responseCode.getMessage();
    }

}
